﻿<html>
<?php
require("header.php");
?>
<body class="text-center">
<?php
	 require("dblink.php");
	  $sql = "select * from room ";
              //echo $sql;
              $rs=mysqli_query($db_link,$sql);
              if(!$rs)
              {
                  echo "无满足条件的记录！";
                  exit;
              }
       
              while ($rows=mysqli_fetch_assoc($rs)){
              	if ($rows["房间号"]==$_GET["id"]){
              		$F=$rows["房间号"];
              		$X=$rows["客户信息"];
              		$yaoqiu=$rows["客户要求"];
                    $leixing=$rows["类型"];
                    $jiage=$rows["价格"];
              		}
              }




	 ?>
<div class="panel panel-success" style="width: 80%;float: right;">
    <div class="panel-heading">
        确认客户需求
    </div>

    <form class="text-center" style="margin-top: 50px;margin-left: 500px;margin-right: 500px;">
        <ul class="list-group" >
            <li class="list-group-item" name="id">预订房间号：<?php echo $F;?></li>
            <li class="list-group-item">房间类型:<?php echo $leixing; ?></li>
            <li class="list-group-item">房间价格:<?php echo $jiage; ?></li>
            <li class="list-group-item">客户姓名：<?php echo $X; ?></li>
            <li class="list-group-item">客户要求:<br><?php echo $yaoqiu; ?></li>
        </ul>
        <a href='queren_server.php?id=<?php echo $F;?>'>接收订单</a>

    </form>
</div>




</body>
</html>